Skip to content

Add port for NETX use #427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 28, 2025
Merged

Add port for NETX use #427

merged 4 commits into from
May 28, 2025

Conversation

JacobBarthelmeh
Copy link
Contributor

Adds example port for NETX use and adds the macro EXTERNAL_MQTT_TLS_CALLBACK for compiling out the example TLS callback function.

@JacobBarthelmeh JacobBarthelmeh requested a review from Copilot May 20, 2025 16:18
@JacobBarthelmeh JacobBarthelmeh self-assigned this May 20, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds support for NETX by introducing NETX-specific macros, new fields in the SocketContext, and backend functions for handling socket operations via NETX. It also adds conditional compilation to allow external MQTT TLS callback implementations.

  • Added NETX configuration and macro definitions in mqttport.h.
  • Extended SocketContext with NETX fields and implemented NETX backend functions in mqttnet.c.
  • Adjusted compilation conditionals for MQTT TLS in mqttexample.h and mqttexample.c.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
examples/mqttport.h Added NETX-specific include and macro definitions.
examples/mqttnet.h Extended SocketContext with NETX-related members.
examples/mqttnet.c Introduced NETX backend functions (disconnect, connect, write, read) and adjusted socket initialization.
examples/mqttexample.h Added conditional exclusion based on EXTERNAL_MQTT_TLS_CALLBACK.
examples/mqttexample.c Modified TLS callback conditional compilation.

dgarske
dgarske previously approved these changes May 27, 2025
@dgarske dgarske requested a review from embhorn May 27, 2025 22:28
@JacobBarthelmeh
Copy link
Contributor Author

I noticed an issue with handling socket timeout cases with this port. Adding a commit to fix it then reassigning back.

Copy link
Member

@embhorn embhorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I will add an issue to create a GH workflow to build test with NETX.

@embhorn embhorn merged commit f74329f into wolfSSL:master May 28, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants